import { GithubOutlined } from '@ant-design/icons';
import { DefaultFooter } from '@ant-design/pro-layout';
import {WEB_SITE,ICP_WEBSITE} from "@/constants";

const Footer: React.FC = () => {
  const defaultMessage = '福尔摩斯出品';
  const currentYear = new Date().getFullYear();
  return (
    <DefaultFooter
      copyright={`${currentYear} ${defaultMessage}`}
      links={[
        {
          key: 'planet',
          title: '福尔摩斯主页',
          href: WEB_SITE,
          blankTarget: true,
        },
        {
          key: 'gitee',
          title: <><GithubOutlined /> itholmes Gitee</>,
          href: 'https://gitee.com/it-sherlock',
          blankTarget: true,
        },
        {
          key: 'codeNav',
          title: '鲁ICP备2022028500号-1',
          href: ICP_WEBSITE,
          blankTarget: true,
        },
      ]}
    />
  );
};

export default Footer;
